
<%@ page import="com.future.Evaluation" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'evaluation.label', default: 'Evaluation')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>

        <div class="body_1">
          <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
          </div>
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${evaluationInstance}">
            <div class="errors">
                <g:renderErrors bean="${evaluationInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table style="width:65%">
                        <tbody>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name"><g:message code="evaluation.name.label" default="Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evaluationInstance, field: 'name', 'errors')}">
                                    <g:textField name="name" value="${evaluationInstance?.name}" />
                                </td>
                            </tr>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="email"><g:message code="evaluation.email.label" default="Email" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evaluationInstance, field: 'email', 'errors')}">
                                    <g:textField name="email" value="${evaluationInstance?.email}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="qq"><g:message code="evaluation.qq.label" default="Qq" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evaluationInstance, field: 'qq', 'errors')}">
                                    <g:textField name="qq" value="${evaluationInstance?.qq}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="msn"><g:message code="evaluation.msn.label" default="Msn" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evaluationInstance, field: 'msn', 'errors')}">
                                    <g:textField name="msn" value="${evaluationInstance?.msn}" />
                                </td>
                            </tr>
                        

                        

                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="task"><g:message code="evaluation.task.label" default="Task" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evaluationInstance, field: 'task', 'errors')}">
                                    <g:select name="task.id" from="${com.future.Task.list()}" optionKey="id" value="${evaluationInstance?.task?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="evaluation"><g:message code="evaluation.evaluation.label" default="Evaluation" /></label>
                                </td>
                                <td></td>
                            </tr>
                            <tr><td colspan="2" valign="top" class="value ${hasErrors(bean: evaluationInstance, field: 'evaluation', 'errors')}">
                                    <fckeditor:editor width="100%" height="350" name="evaluation" value="${evaluationInstance?.evaluation}"></fckeditor:editor>
                                </td></tr>
                        </tbody>
                    </table>
                </div>
                <div class="buttons" style="width:70%">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
